package com.itheima.arrgydemo;

public class demo5 {
    public static void main(String[] args) {
        //定义一个数组
        int[] arr = {1,2,3,4,5};
        //长度5
        //最小索引0
        //最大索引:4(数组的长度-1)
        System.out.println(arr[2]);
        //小结:
        //索引越界异常

    }
}
